let worker1 = new Worker("./worker1.js");
let worker2 = new Worker("./worker2.js");
let ms = new MessageChannel();
// 把 port1 分配给 worker1
worker1.postMessage("main", [ms.port1]);
// 把 port2 分配给 worker2
worker2.postMessage("main", [ms.port2]);
// https://zhuanlan.zhihu.com/p/432726048 参考
